<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>AviaAgency</title>
        <h:outputStylesheet name="css/jsfcrud.css"/>
    </h:head>
    <h:body>
        <h:form>     
            <div align="center">
                <h3 align="center">Welcome to our avia agency!</h3>
                Please, introduce or register
                <h:panelGrid columns="2">
                    <h:outputLabel value="Login:"/>
                    <h:inputText value="#{register.login}"/>
                    <h:outputLabel value="Password:"/>
                    <h:inputSecret/>      

                </h:panelGrid>
                <h:commandButton value="Login"><f:ajax /></h:commandButton>
                <h:commandButton value="Register" action="register.xhtml"/>
                <h:commandButton value="Register"/>
                <h:outputText value="#{register.go()}"/>
                <h:commandButton value="Show planes" action="#{register.go()}"/>                
                #{register.exc}
            </div>


        </h:form>


        <br />
        <h:link outcome="/planes/List" value="Show All Planes Items"/>
    </h:body>

</html>

